<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 11/28/13
  Time: 2:58 PM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c"
           uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>Employee search</title>
</head>
<body>

<form action="do">
    <input type="text" name="employeeId">Employee ID</input>
    <input type="submit" value="Search"></input>
</form>
<p>

    <c:if test="${requestScope.entity eq null}">
    <c:out value="null">null</c:out>
    </c:if>

    <c:if test="${requestScope.entity ne null}">
        <c:out value="${requestScope.entity.id}">${requestScope.entity.id}</c:out>
        <c:out value="${requestScope.entity.name}"/>
    </c:if>


</body>
</html>